package timu;

public class chitaozi {
    public static void main(String[] args) {
        int day;
        int tao=1;
        System.out.println("第5天吃桃子之前的桃子数："+tao);
        for (day = 4; day >= 1; day--) {
            tao=(tao+1)*2;
            System.out.println("第"+day+"天吃桃子之前的桃子数："+tao);
        };
        System.out.println("第1天共摘了"+tao+"桃子");
    }
}
